package sdk.pay.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by lj on 2017/9/12 0012.
 */

public class PayParamErro {
    private static final Map<String, String> mMap = new HashMap<>();

    static {
        mMap.put("-1", "未知错误");
        mMap.put("-70001", "签名失败");
        mMap.put("-71001", "商户应用号为空");
        mMap.put("-71002", "商户订单号为空");
        mMap.put("-71003", "商户订单金额为空");
        mMap.put("-71004", "用户明文跳转地址为空");
        mMap.put("-71005", "服务器异步通知地址为空");
        mMap.put("-71006", "商户订单时间为空");
        mMap.put("-71007", "产品类型编码为空");
        mMap.put("-71008", "商户订单号重复");
        mMap.put("-71009", "点卡卡号为空");
        mMap.put("-71010", "点卡卡密为空");
        mMap.put("-72001", "商户应用号长度超限50");
        mMap.put("-72002", "商户订单号长度超限50");
        mMap.put("-72003", "商户订单金额长度超限10");
        mMap.put("-72004", "用户明文跳转地址长度超限200");
        mMap.put("-72005", "服务器异步通知地址长度超限200");
        mMap.put("-72006", "产品类型编码长度超限50");
        mMap.put("-72007", "订单签名长度超限200");
        mMap.put("-72008", "签名方式长度超限50");
        mMap.put("-72009", "银行卡或卡类编码长度超限50");
        mMap.put("-72010", "客户支付银行卡类型id长度超限50");
        mMap.put("-72011", "客户支付银行卡支付类型长度超限50");
        mMap.put("-72012", "客户游戏账号长度超限50");
        mMap.put("-72013", "客户联系内容长度超限200");
        mMap.put("-72014", "客户ip地址长度超限50");
        mMap.put("-72015", "商品名称长度超限50");
        mMap.put("-72016", "商品种类长度超限50");
        mMap.put("-72017", "商品数量长度超限10");
        mMap.put("-72018", "商品描述长度超限50");
        mMap.put("-72019", "对接版本长度超限50");
        mMap.put("-72020", "sdk版本长度超限50");
        mMap.put("-72021", "提交编码格式长度超限50");
        mMap.put("-72022", "订单自己备注长度超限50");
        mMap.put("-72023", "客户终端设备值长度超限1");
        mMap.put("-72024", "产品数量应为正整数");
        mMap.put("-72025", "点卡卡号值长度超限50");
        mMap.put("-72026", "点卡卡密值长度超限50");
        mMap.put("-73001", "商户订单金额格式不符");
        mMap.put("-73002", "用户明文跳转地址格式不符");
        mMap.put("-73003", "服务器异步通知地址格式不符");
        mMap.put("-73004", "商户订单时间格式不符");
        mMap.put("-73005", "产品类型编码不存在");
        mMap.put("-73006", "客户支付银行卡类型id不正确");
        mMap.put("-73007", "订单失效时间格式不符");
        mMap.put("-73008", "商户应用号不存在");
        mMap.put("-73009", "商户应用号复审未通过");
        mMap.put("-73010", "提交ur地址与限制提交网址不符");
        mMap.put("-73011", "SDK包名与限制SDK包名不符");
        mMap.put("-73012", "点卡卡号格式不符");
        mMap.put("-73013", "点卡卡密格式不符");
        mMap.put("-74001", "提交数据已发生改变");
        mMap.put("-75001", "订单金额超出应用对应支付产品单笔限额");
        mMap.put("-75002", "订单金额超出对应支付产品单日限额");
    }

    public static String getParamErro(String state) {
        String str = mMap.get(state);
        return str;
    }
}
